package com.direction.hold;

import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.Window;
import cn.cheln.support.data.text.xml.SPUtil;
import cn.cheln.support.manager.listener.HomeListener;
import com.direction.hold.ui.SlideActivity;
import com.lewa.os.ui.ViewPagerIndicatorActivity;
import com.umeng.analytics.MobclickAgent;
import com.umeng.update.UmengUpdateAgent;
import java.util.Calendar;

public class FileApp extends ViewPagerIndicatorActivity
{
  public static FileApp activity;
  public static boolean created = false;
  public static SlideActivity slideActivity;
  Handler handler = new Handler()
  {
    public void handleMessage(Message paramMessage)
    {
      super.handleMessage(paramMessage);
      MobclickAgent.onError(FileApp.this);
      UmengUpdateAgent.setUpdateOnlyWifi(false);
      Long localLong = (Long)SPUtil.getValue(FileApp.this, "file", "ftime", Long.class);
      if ((localLong.longValue() == -1L) || (localLong == null))
        SPUtil.putValue(FileApp.this, "file", "ftime", Long.valueOf(Calendar.getInstance().getTimeInMillis()));
      if (System.currentTimeMillis() - localLong.longValue() <= 604800000L)
        return;
      UmengUpdateAgent.update(FileApp.this);
      SPUtil.putValue(FileApp.this, "file", "ftime", Long.valueOf(System.currentTimeMillis()));
    }
  };

  public void onCreate(Bundle paramBundle)
  {
    getWindow().setFlags(2048, 2048);
    try
    {
      slideActivity = new SlideActivity(this);
      slideActivity.preCreate(this);
      super.onCreate(paramBundle);
      this.handler.sendEmptyMessageDelayed(0, 900L);
    }
    catch (Exception localException1)
    {
      try
      {
        slideActivity.setEntryActivity(this);
        slideActivity.postCreate(paramBundle);
        return;
        localException1 = localException1;
        localException1.printStackTrace();
      }
      catch (Exception localException2)
      {
        localException2.printStackTrace();
      }
    }
  }

  protected void onDestroy()
  {
    slideActivity.onEventDestroy();
    super.onDestroy();
  }

  protected void onPause()
  {
    super.onPause();
    MobclickAgent.onPause(this);
  }

  protected void onResume()
  {
    super.onResume();
    MobclickAgent.onResume(this);
    activity = this;
    HomeListener.addInstance(this);
    HomeListener.handleResume_backResume(this);
  }

  protected void onStart()
  {
    super.onStart();
  }

  protected void onStop()
  {
    super.onStop();
    HomeListener.removeInstance(this);
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     com.direction.hold.FileApp
 * JD-Core Version:    0.5.2
 */